﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Ventas.Master" AutoEventWireup="true" CodeBehind="ListadoPurchase.aspx.cs" Inherits="Trade.WebForm4" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<style type="text/css">
/* -- ASPxNavBar Lite -- */
.dxnbLite_SoftOrange1 
{
	color: white;
	background-color: transparent;
	border: 4px Solid #D3D3D3;
	font: 12px Tahoma, Geneva, sans-serif;
    font-weight:bold;
	list-style: none none outside;
	margin: 0;
	padding: 1px;
	float: left;
	width: 99%;
}
.dxnbLite_SoftOrange1 .dxnb-content 
{
	color: #FFF;
	border-bottom: 1px Dotted #5C5C5C;
	list-style: none none outside;
	margin: 0;
	padding: 2px 1px;
	overflow: hidden;
}
.dxgvControl_Metropolis1,
.dxgvDisabled_Metropolis1
{
	border: 1px Solid #c0c0c0;
	font: 12px 'Segoe UI', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
	background-color: #0e1452;
	color: #FFF;
	cursor: default;
}
.dxgvHeader_Metropolis1
{
	cursor: pointer;
	white-space: nowrap;
	padding: 4px 6px 5px;
	border: 1px Solid #FFF;
	overflow: hidden;
	font-weight: normal;
	text-align: left;
	background-color: #0e1452;
}
.dxgvTable_Metropolis1
{
	background-color: transparent;
	border-width: 0;
	border-collapse: separate!important;
	overflow: hidden;
}
</style>



    <table style="width:100%;">
        <tr>
            <td style="width:74px;">&nbsp;</td>
            <td align="left">
                <table cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td style="width: 490px">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>&nbsp;</td>
            <td> &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 74px"> &nbsp; </td>
            <td colspan= "3">
                <table style="width: 25%; margin-left: 0px;">
                    <tr>
                        <td style="border: medium solid #EAEAEA;width:25%;" align="left" colspan="2">
                            <table cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td align="left">
                                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Font-Bold="false" Text="Filter by:" ForeColor="White"
                                        Font-Names="Times New Roman" Font-Size="Small">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        <asp:DropDownList ID="cmb_filtro" runat="server" AutoPostBack="true">
                                            <asp:ListItem Value="1"> Registrados en el día</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 89px"> &nbsp;</td>
            <td align="left" style="width: 190px"> &nbsp;</td>
            <td style="width: 91px"> &nbsp;</td>
            <td style="width: 172px"> &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <table cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td style="width: 153px"></td>
                        <td style="width: 158px">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 74px"> &nbsp;</td>
            <td colspan="3">
                <dx:ASPxGridView ID="Grid_Purchase" runat="server" Theme="Metropolis1" 
                    Width="981px" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
                    KeyFieldName="numero">
                    <Columns>
                        <dx:GridViewCommandColumn VisibleIndex="0">
                            <ClearFilterButton Visible="True">
                            </ClearFilterButton>
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="Number" FieldName="numero" VisibleIndex="1"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Client" FieldName="Nombre_Empresa" VisibleIndex="2"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Date" FieldName="fechaCreacion" VisibleIndex="3"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Suplier" FieldName="Nombre_Proveedor" VisibleIndex="4"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="ETD" FieldName="fechaETD" VisibleIndex="5"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="ETA" FieldName="fechaETA" VisibleIndex="6"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Advance" FieldName="avance" VisibleIndex="7"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="State" FieldName="estado" VisibleIndex="8"></dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn VisibleIndex="9">
                            <DataItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server"  Width="24px" CausesValidation="false" ImageUrl="~/Images/BtnEditar.png"/>
                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                </dx:ASPxGridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:prod_001ConnectionString %>" 
                    SelectCommand="consultar.PA_Consultar_PurchaseOrderCAB" 
                    SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:SessionParameter Name="empresa" SessionField="Id_Empresa" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
